
package com.bei_en.teacher.admin.model.consultation.vo;

import java.util.*;
import com.bei_en.teacher.admin.model.consultation.bean.Consultation;
import com.bei_en.teacher.admin.model.BaseVo;
import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import java.math.BigDecimal;

/**
 * 用于前端页面数据传递
 * 
 * @author Guocg
 * @date 2016-12-5 22:21:52
 */
public class ConsultationVo extends BaseVo {

    private Consultation consultation;

    public ConsultationVo() {

    this.consultation = new Consultation();
    }

    public ConsultationVo(Consultation consultation) {

    this.consultation = consultation;
    }
    
    public Consultation getConsultation() {

    return this.consultation;
    }
    
    public void setConsultation(Consultation consultation) {

    this.consultation=consultation;
    }

        public Integer getId() {
            return this.consultation.getId();
        }
        public void setId(Integer id) {
            this.consultation.setId(id);
        }
        
        public void setId(Integer value) {
    	this.consultation.setId(value);
        }
	
    public Integer getId() {
        return this.consultation.getId();
    }
        
        public void setTitle(String value) {
    	this.consultation.setTitle(value);
        }
	@Length(max=255)
    public String getTitle() {
        return this.consultation.getTitle();
    }
        
        public void setContent(String value) {
    	this.consultation.setContent(value);
        }
	@Length(max=65535)
    public String getContent() {
        return this.consultation.getContent();
    }
        
        public void setLookNum(Integer value) {
    	this.consultation.setLookNum(value);
        }
	
    public Integer getLookNum() {
        return this.consultation.getLookNum();
    }
        
        public void setUserId(Integer value) {
    	this.consultation.setUserId(value);
        }
	
    public Integer getUserId() {
        return this.consultation.getUserId();
    }
        
        public void setThumbnail(String value) {
    	this.consultation.setThumbnail(value);
        }
	@Length(max=255)
    public String getThumbnail() {
        return this.consultation.getThumbnail();
    }
        
        public void setArticleType(Integer value) {
    	this.consultation.setArticleType(value);
        }
	
    public Integer getArticleType() {
        return this.consultation.getArticleType();
    }
        
        public void setSubjectId(Integer value) {
    	this.consultation.setSubjectId(value);
        }
	
    public Integer getSubjectId() {
        return this.consultation.getSubjectId();
    }
        
        public void setEducationId(Integer value) {
    	this.consultation.setEducationId(value);
        }
	
    public Integer getEducationId() {
        return this.consultation.getEducationId();
    }
        
        public void setProvinceId(Integer value) {
    	this.consultation.setProvinceId(value);
        }
	
    public Integer getProvinceId() {
        return this.consultation.getProvinceId();
    }
        
        public void setCityId(Integer value) {
    	this.consultation.setCityId(value);
        }
	
    public Integer getCityId() {
        return this.consultation.getCityId();
    }
        
        public void setAreaId(Integer value) {
    	this.consultation.setAreaId(value);
        }
	
    public Integer getAreaId() {
        return this.consultation.getAreaId();
    }
        
        public void setOrders(Integer value) {
    	this.consultation.setOrders(value);
        }
	
    public Integer getOrders() {
        return this.consultation.getOrders();
    }
        
        public void setAuthor(String value) {
    	this.consultation.setAuthor(value);
        }
	@Length(max=255)
    public String getAuthor() {
        return this.consultation.getAuthor();
    }
        
    public void setCreateTime(Date value) {
        this.consultation.setCreateTime(value!=null ? (int) (value.getTime()/1000) : 0);
    }

	 public Date getCreateTime() {
	     Integer time=this.consultation.getCreateTime();
	     if (time!=null&&time!=0)
		    return new Date(Long.valueOf(time)*1000);
		else
		    return null;
	    }
        
    public void setUpdateTime(Date value) {
        this.consultation.setUpdateTime(value!=null ? (int) (value.getTime()/1000) : 0);
    }

	 public Date getUpdateTime() {
	     Integer time=this.consultation.getUpdateTime();
	     if (time!=null&&time!=0)
		    return new Date(Long.valueOf(time)*1000);
		else
		    return null;
	    }
    


}